cmake_minimum_required(VERSION 3.0)

project(HelloQt)

set(CMAKE_CXX_STANDARD 11)

set(CMAKE_AUTOMOC ON) # For meta object compiler
set(CMAKE_AUTORCC ON) # Resource files
set(CMAKE_AUTOUIC ON) # UI files

find_package(OpenCV REQUIRED)
find_package(CUDA REQUIRED)
find_package(Qt5 REQUIRED Widgets Core)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${OPENCV_INCLUDE_DIRS})

FILE(GLOB SRC_LIST *.cpp)
add_executable(${PROJECT_NAME} ${SRC_LIST})

qt5_use_modules(${PROJECT_NAME} Widgets Core)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES})
